package com.qf.common.result;

import lombok.Getter;

/**
 * @author Administrator
 */
@Getter
public enum ResponseResultCode {
    /**
     * 成功
     */
    SUCCESS(20000, "success"),
    /**
     * 未知错误
     */
    SYS_ERROR(40000, "服务器繁忙,请重试"),


    /**
     * 商品相关的错误
     */
    PRODUCT_NO_EXIT_ERROR(40200, "商品不存在"),

    PRODUCT_NO_STOCK_ERROR(40201, "库存不足"),

    SKU_NO_STOCK(40201, "更新库存失败");

    private Integer code;
    private String message;

    ResponseResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
